<%@ page import="vo.User" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>学生成绩管理系统v1.0</title>
</head>
<body>
欢迎您：${user.uname}(${user.uid})</br>
<h1>查看课程信息</h1>
<a href="/sgms/adminUI.jsp"> 回到上一页 </a></br>
<c:if test="${empty lecList}">
    <jsp:forward page="/askLec">
        <jsp:param name="from" value="seeLecs"></jsp:param>
    </jsp:forward>
</c:if>
<table border="1" cellpadding="10">
    <tr>
        <td>教师编号</td>
        <td>教师姓名</td>
        </br>
    </tr>
    <c:forEach items="${lecList}" var="lec">
        <tr>
            <td>${lec.lid}</td>
            <td>${lec.lname}</td>
            </br>
        </tr>
    </c:forEach>
</table>
</body>
</html>
